package com.tttshaoqi.server.service;

import com.tttshaoqi.common.result.Result;
import com.tttshaoqi.pojo.entity.Post;

import java.util.List;
import java.util.Optional;

public interface PostService {
    Post create(Long userId, String title, String content, List<String> imageUrls, List<String> tags);
    Optional<Post> update(Long userId, Long postId, String title, String content, List<String> imageUrls, List<String> tags);
    boolean delete(Long userId, Long postId);

    Result<Void> banchDelete(Long id, List<Long> ids);
}



